projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5e8d9
)
armv8: ls1046a: disable SATA ECC in DCSR
author
Shaohui Xie
<
[email protected]
>
Wed, 7 Sep 2016 09:56:12 +0000
(17:56 +0800)
committer
York Sun
<
[email protected]
>
Wed, 14 Sep 2016 21:10:52 +0000
(14:10 -0700)
This is a workaround to fix SATA CRC error. Once the root cause
is found the ECC disabling will be removed.
Signed-off-by: Shaohui Xie <
[email protected]
>
Signed-off-by: Gong Qianyu <
[email protected]
>
Reviewed-by: York Sun <
[email protected]
>
arch/arm/cpu/armv8/fsl-layerscape/soc.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv8/fsl-layerscape/soc.c
b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index 43c4aa59a1525c45798b6d3619076de908f31e95..5ca721d079c016458f274051b228f802ed44a49a 100644
(file)
--- a/
arch/arm/cpu/armv8/fsl-layerscape/soc.c
+++ b/
arch/arm/cpu/armv8/fsl-layerscape/soc.c
@@
-228,6
+228,10
@@
int sata_init(void)
{
struct ccsr_ahci __iomem *ccsr_ahci = (void *)CONFIG_SYS_SATA;
+#ifdef CONFIG_LS1046A
+ /* Disable SATA ECC */
+ out_le32((void *)CONFIG_SYS_DCSR_DCFG_ADDR + 0x520, 0x80000000);
+#endif
out_le32(&ccsr_ahci->ppcfg, AHCI_PORT_PHY_1_CFG);
out_le32(&ccsr_ahci->pp2c, AHCI_PORT_PHY_2_CFG);
out_le32(&ccsr_ahci->pp3c, AHCI_PORT_PHY_3_CFG);